#include <Arduino.h>
#include "user_config.h"
#include "user_protocol.h"
#include "bsp_led.h"



void setup() {
  // put your setup code here, to run once:
  //int result = myFunction(2, 3);
  pinMode(LED_PIN, OUTPUT);
  
  //Serial Test
  Serial.begin(9600);
  Serial.println("K32 BLDC-CI1303 Protocol Parser Ready");
  Serial.println("Waiting for commands...");
}


void loop() {
  if (Serial.available() > 0) {
    processSerialData();
  }
}
